
package filmAction;

import com.opensymphony.xwork2.ActionSupport;

import filmsDao.StudentDao;

import javax.swing.JOptionPane;

public class DeleteMessageAction extends ActionSupport{
    private String id;
    private String message;
    
  
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public void validate(){
       
    }
    public String execute() throws Exception{
        StudentDao dao=new StudentDao();
        boolean del=dao.deleteInfo(this.getId());
        if(del){
            message="success";
        }
        return message;
    }
    public void message(String mess){
        int type=JOptionPane.YES_NO_OPTION;
        String title="提示信息";
        JOptionPane.showMessageDialog(null, mess, title, type);
    }
}
